<?php
    include 'connectDB.php';
	$fun = $_POST["function"];
    if($fun=='get_location'){
	get_location();
 }
    function get_location(){
    		
    	$strSQL ="SELECT * FROM tbl_merchant";
		$objQuery = mysql_query($strSQL);
		
		while($objResult = mysql_fetch_assoc($objQuery)){
			$rs[] = $objResult;
		} 
		echo json_encode($rs);
		
    }
?>